import Vue from 'vue'
import Vuex from 'vuex'
import {sepet} from './mutations'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    por:[]
    // 使用空数组接收,token返回的路由权限.
  },
  getters:{
   porarr(state){
      return state.por.map(item=>{
        return item.path
      })
   }
  },
  mutations: {
    [sepet](state,playload){
      state.por=playload
    }
  },
  actions: {
  },
  modules: {
  }
})
